@zonos/elements 1.3.145 → 1.3.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/cjs/{cart-9d5e2816.js → cart-ff5887f0.js} +63 -1
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{paypal-f9015045.js → paypal-dd767dbc.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +2 -2
  6. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +17 -6
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +68 -12
  8. package/dist/cjs/zonos-controller.cjs.entry.js +9 -3
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-elements.cjs.js +1 -1
  12. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +66 -10
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +15 -3
  19. package/dist/collection/components/main/zonos-controller.js +8 -2
  20. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  21. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  38. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  39. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  40. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  41. package/dist/collection/components/utils/hello/getZCountryUrlParam.js +3 -1
  42. package/dist/esm/{cart-887f7d66.js → cart-9de02093.js} +63 -1
  43. package/dist/esm/index.js +7 -7
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/{paypal-6fd5749b.js → paypal-1efe64a0.js} +1 -1
  46. package/dist/esm/zonos-address_8.entry.js +2 -2
  47. package/dist/esm/zonos-cart-items_13.entry.js +17 -6
  48. package/dist/esm/zonos-checkout.entry.js +68 -12
  49. package/dist/esm/zonos-controller.entry.js +9 -3
  50. package/dist/esm/zonos-country-flag.entry.js +1 -1
  51. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  52. package/dist/esm/zonos-elements.js +1 -1
  53. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  54. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  55. package/dist/esm/zonos-hello.entry.js +1 -1
  56. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  57. package/dist/esm-es5/cart-9de02093.js +1 -0
  58. package/dist/esm-es5/index.js +1 -1
  59. package/dist/esm-es5/loader.js +1 -1
  60. package/dist/esm-es5/{paypal-6fd5749b.js → paypal-1efe64a0.js} +1 -1
  61. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  62. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  63. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  64. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  65. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  66. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  67. package/dist/esm-es5/zonos-elements.js +1 -1
  68. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  69. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  70. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  71. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  72. package/dist/scripts/index.d.ts +20 -1
  73. package/dist/scripts/index.js +1 -1
  74. package/dist/scripts/loadZonos.js +1 -1
  75. package/dist/scripts/zonos.js +1 -1
  76. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +2 -0
  77. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +5 -0
  78. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  79. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  80. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  81. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  82. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  83. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  84. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  91. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  92. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  93. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  94. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  95. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  96. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  97. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  98. package/dist/types/types/checkout/CheckoutConfig.d.ts +20 -1
  99. package/dist/zonos-elements/index.esm.js +1 -1
  100. package/dist/zonos-elements/{p-b4823b13.entry.js → p-00182783.entry.js} +1 -1
  101. package/dist/zonos-elements/{p-896dca32.entry.js → p-056e1930.entry.js} +1 -1
  102. package/dist/zonos-elements/{p-98db517b.entry.js → p-0a0eccae.entry.js} +1 -1
  103. package/dist/zonos-elements/p-36cd38ba.system.js +1 -0
  104. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  105. package/dist/zonos-elements/{p-9024f5a1.entry.js → p-4b0cb1ce.entry.js} +1 -1
  106. package/dist/zonos-elements/p-4f398271.entry.js +1 -0
  107. package/dist/zonos-elements/{p-826b5d0c.system.js → p-5831e9ba.system.js} +1 -1
  108. package/dist/zonos-elements/{p-fec7bdd4.system.entry.js → p-5d570a00.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-4d353108.entry.js → p-6adea6aa.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-b7a40db9.system.entry.js → p-8455a72e.system.entry.js} +1 -1
  111. package/dist/zonos-elements/p-8dc3edd5.system.entry.js +1 -0
  112. package/dist/zonos-elements/{p-9ae29c27.system.entry.js → p-9c6ed828.system.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-1d466ac6.entry.js → p-9dd24661.entry.js} +1 -1
  114. package/dist/zonos-elements/p-9f5789a5.js +17 -0
  115. package/dist/zonos-elements/{p-0e9826d2.system.entry.js → p-afd32c67.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-5e76c269.entry.js → p-c8fb55dc.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-fdb592a8.system.js → p-ce4e9134.system.js} +1 -1
  118. package/dist/zonos-elements/{p-3bd17598.system.entry.js → p-cfce4fa3.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-e3abf96c.system.entry.js → p-da6d01bc.system.entry.js} +1 -1
  120. package/dist/zonos-elements/p-e3131c5e.system.entry.js +1 -0
  121. package/dist/zonos-elements/p-e99dec7d.js +1 -0
  122. package/dist/zonos-elements/{p-e8926f59.entry.js → p-f4929b6e.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-2e6265cc.system.entry.js → p-f4958bec.system.entry.js} +1 -1
  124. package/dist/zonos-elements/{p-794b2d24.system.entry.js → p-f70b072b.system.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-e4d509be.entry.js → p-fd26a3cc.entry.js} +1 -1
  126. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  127. package/package.json +1 -1
  128. package/dist/esm-es5/cart-887f7d66.js +0 -1
  129. package/dist/zonos-elements/p-3f282167.system.entry.js +0 -1
  130. package/dist/zonos-elements/p-49b8760c.system.entry.js +0 -1
  131. package/dist/zonos-elements/p-5e4b6b77.js +0 -17
  132. package/dist/zonos-elements/p-b0ced00a.system.js +0 -1
  133. package/dist/zonos-elements/p-b18c4d1d.js +0 -1
  134. package/dist/zonos-elements/p-f824a75f.entry.js +0 -1
@@ -357,6 +357,9 @@ const stringsArabic = {
357
357
  Success: {
358
358
  value: 'نجاح',
359
359
  },
360
+ 'Tax id is required': {
361
+ value: 'مطلوب رقم التعريف الضريبي',
362
+ },
360
363
  'Taxes and fees': {
361
364
  value: 'الضرائب والرسوم',
362
365
  },
@@ -822,6 +825,9 @@ const stringsBase = {
822
825
  Success: {
823
826
  value: 'Success',
824
827
  },
828
+ 'Tax id is required': {
829
+ value: 'Tax id is required',
830
+ },
825
831
  'Taxes and fees': {
826
832
  value: 'Taxes and fees',
827
833
  },
@@ -1287,6 +1293,9 @@ const stringsChinese = {
1287
1293
  Success: {
1288
1294
  value: '成功',
1289
1295
  },
1296
+ 'Tax id is required': {
1297
+ value: '需要税号',
1298
+ },
1290
1299
  'Taxes and fees': {
1291
1300
  value: '税费',
1292
1301
  },
@@ -1752,6 +1761,9 @@ const stringsDanish = {
1752
1761
  Success: {
1753
1762
  value: 'Succes',
1754
1763
  },
1764
+ 'Tax id is required': {
1765
+ value: 'Skatte-id er påkrævet',
1766
+ },
1755
1767
  'Taxes and fees': {
1756
1768
  value: 'Skatter og gebyrer',
1757
1769
  },
@@ -2217,6 +2229,9 @@ const stringsDutch = {
2217
2229
  Success: {
2218
2230
  value: 'Succes',
2219
2231
  },
2232
+ 'Tax id is required': {
2233
+ value: 'Belasting-ID is vereist',
2234
+ },
2220
2235
  'Taxes and fees': {
2221
2236
  value: 'Belastingen en kosten',
2222
2237
  },
@@ -2682,6 +2697,9 @@ const stringsFrench = {
2682
2697
  Success: {
2683
2698
  value: 'Succès',
2684
2699
  },
2700
+ 'Tax id is required': {
2701
+ value: "L'identifiant fiscal est requis",
2702
+ },
2685
2703
  'Taxes and fees': {
2686
2704
  value: 'Taxes et frais',
2687
2705
  },
@@ -3147,6 +3165,9 @@ const stringsGerman = {
3147
3165
  Success: {
3148
3166
  value: 'Erfolg',
3149
3167
  },
3168
+ 'Tax id is required': {
3169
+ value: 'Steuer-ID ist erforderlich',
3170
+ },
3150
3171
  'Taxes and fees': {
3151
3172
  value: 'Steuern und Gebühren',
3152
3173
  },
@@ -3612,6 +3633,9 @@ const stringsHebrew = {
3612
3633
  Success: {
3613
3634
  value: 'הצלחה',
3614
3635
  },
3636
+ 'Tax id is required': {
3637
+ value: 'נדרש מזהה מס',
3638
+ },
3615
3639
  'Taxes and fees': {
3616
3640
  value: 'מיסים ודמי שירות',
3617
3641
  },
@@ -4077,6 +4101,9 @@ const stringsIndonesian = {
4077
4101
  Success: {
4078
4102
  value: 'Sukses',
4079
4103
  },
4104
+ 'Tax id is required': {
4105
+ value: 'ID pajak diperlukan',
4106
+ },
4080
4107
  'Taxes and fees': {
4081
4108
  value: 'Pajak dan biaya',
4082
4109
  },
@@ -4542,6 +4569,9 @@ const stringsItalian = {
4542
4569
  Success: {
4543
4570
  value: 'Successo',
4544
4571
  },
4572
+ 'Tax id is required': {
4573
+ value: 'È richiesto il codice fiscale',
4574
+ },
4545
4575
  'Taxes and fees': {
4546
4576
  value: 'Tasse e commissioni',
4547
4577
  },
@@ -5007,6 +5037,9 @@ const stringsJapanese = {
5007
5037
  Success: {
5008
5038
  value: '成功',
5009
5039
  },
5040
+ 'Tax id is required': {
5041
+ value: '税務IDが必要です',
5042
+ },
5010
5043
  'Taxes and fees': {
5011
5044
  value: '税金と手数料',
5012
5045
  },
@@ -5472,6 +5505,9 @@ const stringsKorean = {
5472
5505
  Success: {
5473
5506
  value: '성공',
5474
5507
  },
5508
+ 'Tax id is required': {
5509
+ value: '세금 ID가 필요합니다',
5510
+ },
5475
5511
  'Taxes and fees': {
5476
5512
  value: '세금 및 수수료',
5477
5513
  },
@@ -5937,6 +5973,9 @@ const stringsNorwegian = {
5937
5973
  Success: {
5938
5974
  value: 'Suksess',
5939
5975
  },
5976
+ 'Tax id is required': {
5977
+ value: 'Skatte-ID er påkrevd',
5978
+ },
5940
5979
  'Taxes and fees': {
5941
5980
  value: 'Skatter og avgifter',
5942
5981
  },
@@ -6402,6 +6441,9 @@ const stringsPolish = {
6402
6441
  Success: {
6403
6442
  value: 'Sukces',
6404
6443
  },
6444
+ 'Tax id is required': {
6445
+ value: 'Wymagany jest identyfikator podatkowy',
6446
+ },
6405
6447
  'Taxes and fees': {
6406
6448
  value: 'Podatki i opłaty',
6407
6449
  },
@@ -6867,6 +6909,9 @@ const stringsPortuguese = {
6867
6909
  Success: {
6868
6910
  value: 'Sucesso',
6869
6911
  },
6912
+ 'Tax id is required': {
6913
+ value: 'É necessário o ID fiscal',
6914
+ },
6870
6915
  'Taxes and fees': {
6871
6916
  value: 'Impostos e taxas',
6872
6917
  },
@@ -7332,6 +7377,9 @@ const stringsRussian = {
7332
7377
  Success: {
7333
7378
  value: 'Успех',
7334
7379
  },
7380
+ 'Tax id is required': {
7381
+ value: 'Требуется налоговый идентификатор',
7382
+ },
7335
7383
  'Taxes and fees': {
7336
7384
  value: 'Налоги и сборы',
7337
7385
  },
@@ -7797,6 +7845,9 @@ const stringsSpanish = {
7797
7845
  Success: {
7798
7846
  value: 'Éxito',
7799
7847
  },
7848
+ 'Tax id is required': {
7849
+ value: 'Se requiere identificación fiscal',
7850
+ },
7800
7851
  'Taxes and fees': {
7801
7852
  value: 'Impuestos y tarifas',
7802
7853
  },
@@ -8262,6 +8313,9 @@ const stringsSwedish = {
8262
8313
  Success: {
8263
8314
  value: 'Framgång',
8264
8315
  },
8316
+ 'Tax id is required': {
8317
+ value: 'Skatte-ID krävs',
8318
+ },
8265
8319
  'Taxes and fees': {
8266
8320
  value: 'Skatter och avgifter',
8267
8321
  },
@@ -8727,6 +8781,9 @@ const stringsTurkish = {
8727
8781
  Success: {
8728
8782
  value: 'Başarı',
8729
8783
  },
8784
+ 'Tax id is required': {
8785
+ value: 'Vergi kimliği gereklidir',
8786
+ },
8730
8787
  'Taxes and fees': {
8731
8788
  value: 'Vergiler ve ücretler',
8732
8789
  },
@@ -9192,6 +9249,9 @@ const stringsVietnamese = {
9192
9249
  Success: {
9193
9250
  value: 'Thành công',
9194
9251
  },
9252
+ 'Tax id is required': {
9253
+ value: 'Yêu cầu mã số thuế',
9254
+ },
9195
9255
  'Taxes and fees': {
9196
9256
  value: 'Thuế và phí',
9197
9257
  },
@@ -9508,7 +9568,9 @@ const getZCountryUrlParam = (urlParams) => {
9508
9568
  const zCountry = getCountryParam('zCountry');
9509
9569
  // Fallback to legacy 'country'
9510
9570
  const fallback = getCountryParam('country');
9511
- return zCountry || fallback;
9571
+ // Fallback to customerCountry
9572
+ const secondFallback = getCountryParam('customerCountry');
9573
+ return zCountry || fallback || secondFallback;
9512
9574
  };
9513
9575
 
9514
9576
  const getLocalization = async () => {
@@ -129,7 +129,7 @@ const getZonosQaUrl = () => {
129
129
  return null;
130
130
  }
131
131
  const qaUrl = extractZonosQaUrl(window.location.href);
132
- const cdnUrl = "https://v1.3.145.js.zonos.com";
132
+ const cdnUrl = "https://v1.3.147.js.zonos.com";
133
133
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
134
134
  if (!qaUrl &&
135
135
  (cdnUrl.includes('test.') ||
@@ -313,10 +313,10 @@ const zonosLoadUrl = (() => {
313
313
  }
314
314
  return null;
315
315
  })();
316
- const ZONOS_URL = "https://v1.3.145.js.zonos.com";
317
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.145";
318
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.145";
319
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.145";
316
+ const ZONOS_URL = "https://v1.3.147.js.zonos.com";
317
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.147";
318
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.147";
319
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.147";
320
320
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
321
321
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
322
322
  class Zonos {
@@ -330,7 +330,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
330
330
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
331
331
  Zonos._paypalMockResponse = null;
332
332
  Zonos.isBigCommerce = false;
333
- Zonos.releaseDate = "1735941346400";
333
+ Zonos.releaseDate = "1736550511625";
334
334
  Zonos.isLegacyCheckout = false;
335
335
  Zonos.domain = typeof window !== 'undefined'
336
336
  ? // domain that embeds the iframe
@@ -346,7 +346,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
346
346
  Zonos.isNpm = true;
347
347
  Zonos.zonosQaUrl = null;
348
348
  Zonos.zonosQaUrlApi = null;
349
- Zonos.version = `v${"1.3.145"}`;
349
+ Zonos.version = `v${"1.3.147"}`;
350
350
  Zonos.modeAlerted = false;
351
351
  Zonos.cartData = null;
352
352
  Zonos.paypal = null;
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello.cjs\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller.cjs\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog.cjs\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge.cjs\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card.cjs\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input.cjs\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4.cjs\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3.cjs\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4.cjs\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_8.cjs\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}],[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-cart-items_13.cjs\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
11
+ return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello.cjs\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller.cjs\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog.cjs\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge.cjs\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card.cjs\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input.cjs\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4.cjs\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3.cjs\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4.cjs\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_8.cjs\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"]}],[1,\"zonos-checkbox\",{\"backgroundColor\":[1,\"background-color\"],\"label\":[1],\"isChecked\":[4,\"is-checked\"],\"isDisabled\":[4,\"is-disabled\"],\"size\":[2],\"fontSize\":[1,\"font-size\"],\"borderStyle\":[1,\"border-style\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"borderStyle\":[1,\"border-style\"],\"noCloseButton\":[4,\"no-close-button\"],\"noClickOutside\":[4,\"no-click-outside\"],\"mobile\":[4],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}],[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-cart-items_13.cjs\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-46809186.js');
4
- const cart = require('./cart-9d5e2816.js');
4
+ const cart = require('./cart-ff5887f0.js');
5
5
  const handleFetch = require('./handleFetch-3673a0c2.js');
6
6
  const isDarkColor = require('./isDarkColor-2acf30d1.js');
7
7
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-ff5887f0.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
@@ -585,7 +585,7 @@ const ZonosLinkAuthentication = class {
585
585
  return;
586
586
  }
587
587
  // No need to initialize link if this is staging mode since we will render the email input field
588
- if (cart.cartStore.isStagingMode) {
588
+ if (cart.cartStore.isStagingMode || !this.clientSecret) {
589
589
  return;
590
590
  }
591
591
  const defaultValues = this.defaultEmail
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-ff5887f0.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-f9015045.js');
8
+ const paypal = require('./paypal-dd767dbc.js');
9
9
  const zonosStore = require('./zonosStore-46809186.js');
10
10
  const handleFetch = require('./handleFetch-3673a0c2.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
@@ -2133,7 +2133,7 @@ const ZonosCurrencyToggle = class {
2133
2133
  static get assetsDirs() { return ["assets"]; }
2134
2134
  };
2135
2135
 
2136
- const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2136
+ const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:1}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2137
2137
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
2138
2138
 
2139
2139
  const ZonosCustomerInfo = class {
@@ -2214,6 +2214,10 @@ const ZonosCustomerInfo = class {
2214
2214
  paypal.submitGtag('zonos-checkout-customer-info');
2215
2215
  void cart.trackConversionEvent('checkout_customerInfoCompleted');
2216
2216
  };
2217
+ this.isTaxIdRequired = () => {
2218
+ const requireTaxIdCountry = ['MX'];
2219
+ return requireTaxIdCountry.includes(this.shippingCountry);
2220
+ };
2217
2221
  this.handleValidate = () => {
2218
2222
  var _a, _b;
2219
2223
  const stripeShippingAddressEventData = cart.stripeStore.stripeAddressEventData;
@@ -2231,7 +2235,13 @@ const ZonosCustomerInfo = class {
2231
2235
  if (!isValidLink && (stripeLinkEventData === null || stripeLinkEventData === void 0 ? void 0 : stripeLinkEventData.empty)) {
2232
2236
  this.isEmailError = true;
2233
2237
  }
2234
- if (!isValidBilling || !isValidShipping || !isValidLink) {
2238
+ // validate tax id input if it's required for specific countries, optional otherwise
2239
+ const isValidTaxIdInput = !this.isTaxIdRequired() || !!cart.stripeStore.taxId;
2240
+ this.isTaxIdError = !isValidTaxIdInput;
2241
+ if (!isValidBilling ||
2242
+ !isValidShipping ||
2243
+ !isValidLink ||
2244
+ !isValidTaxIdInput) {
2235
2245
  return false;
2236
2246
  }
2237
2247
  return true;
@@ -2269,6 +2279,7 @@ const ZonosCustomerInfo = class {
2269
2279
  this.shippingCountry = '';
2270
2280
  this.isCheckingForRestrictedItems = false;
2271
2281
  this.isValidatingAddress = false;
2282
+ this.isTaxIdError = false;
2272
2283
  this.invalidShippingCharacterList = null;
2273
2284
  this.invalidBillingCharacterList = null;
2274
2285
  this.openAddressValidationDialog = false;
@@ -2315,9 +2326,9 @@ const ZonosCustomerInfo = class {
2315
2326
  return null;
2316
2327
  }
2317
2328
  const taxIdInputInfo = TaxId.shipToTaxIdLabels[countryCode];
2318
- return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { inputLabel: cart.translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: cart.stripeStore.taxId || '', onInputChange: (event) => {
2329
+ return (index.h("div", { class: "zonos--tax-id-input" }, index.h("zonos-stripe-input", { inputLabel: cart.translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: cart.stripeStore.taxId || '', isError: this.isTaxIdError, onInputChange: (event) => {
2319
2330
  cart.stripeStore.taxId = event.detail;
2320
- } })));
2331
+ } }), this.isTaxIdError && (index.h("zonos-text", { textColor: 'red-600', type: "caption" }, cart.translate('Tax id is required')))));
2321
2332
  }
2322
2333
  render() {
2323
2334
  var _a, _b;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
7
- const paypal = require('./paypal-f9015045.js');
6
+ const cart = require('./cart-ff5887f0.js');
7
+ const paypal = require('./paypal-dd767dbc.js');
8
8
  const zonosStore = require('./zonosStore-46809186.js');
9
9
  const handleFetch = require('./handleFetch-3673a0c2.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
@@ -445,7 +445,17 @@ const ZonosCheckout = class {
445
445
  // if createCartId is provided, use it to build cart. Merchant will provide create a cart from their server side and give the cart id to us.
446
446
  if (typeof zonosStore.zonosStore.checkoutSettings.createCartId === 'function') {
447
447
  handleFetch.log('"createCartId" is provided, start building cart');
448
- const cartId = await zonosStore.zonosStore.checkoutSettings.createCartId();
448
+ const cartIdResult = await zonosStore.zonosStore.checkoutSettings.createCartId();
449
+ let cartId;
450
+ if (typeof cartIdResult === 'object') {
451
+ handleFetch.log('object detected, use cartId and prefill address from createCartId');
452
+ cartId = cartIdResult.cartId;
453
+ // set prefill address if provided in createCartId callback result
454
+ this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
455
+ }
456
+ else {
457
+ cartId = cartIdResult;
458
+ }
449
459
  window.Zonos.cartId = cartId;
450
460
  const cartResult = await CheckoutConfig.setupCartData(cartId);
451
461
  const cartData = cartResult === null || cartResult === void 0 ? void 0 : cartResult.cartData;
@@ -707,6 +717,30 @@ const ZonosCheckout = class {
707
717
  // apply theme to stripe elements
708
718
  void this.applyStripeTheme();
709
719
  }
720
+ useShippingDataFromCreateCartId(prefillAddress) {
721
+ // Do only if prefill address is provided
722
+ if (!prefillAddress) {
723
+ return;
724
+ }
725
+ handleFetch.log('shipping data from createCartId result', 'info', Object.entries(prefillAddress));
726
+ const { customerAddress1, customerAddress2, customerCity, customerCountry, customerEmail, customerName, customerPhone, customerState, customerZip, } = prefillAddress;
727
+ const urlParams = new URLSearchParams(window.location.search);
728
+ const country = // fallback to selected country code if country is not provided
729
+ customerCountry ||
730
+ cart.getZCountryUrlParam(urlParams) ||
731
+ cart.localizationStore.selectedCountryCode;
732
+ this.applyPrefillAddress({
733
+ customerAddress1,
734
+ customerAddress2,
735
+ customerCity,
736
+ customerCountry: country,
737
+ customerEmail,
738
+ customerName,
739
+ customerPhone,
740
+ customerState,
741
+ customerZip,
742
+ });
743
+ }
710
744
  /**
711
745
  * Set default address from query param if it's valid
712
746
  */
@@ -720,17 +754,39 @@ const ZonosCheckout = class {
720
754
  }
721
755
  return value;
722
756
  };
723
- const country =
757
+ const customerCountry =
724
758
  // fallback to selected country code if country is not provided
725
759
  cart.getZCountryUrlParam(urlParams) || cart.localizationStore.selectedCountryCode;
726
- const city = getParam('customerCity');
727
- const email = getParam('customerEmail') || '';
728
- const line1 = getParam('customerAddress1');
729
- const line2 = getParam('customerAddress2') || '';
730
- const name = getParam('customerName');
731
- const phone = getParam('customerPhone');
732
- const postal_code = getParam('customerZip') || '';
733
- const state = getParam('customerState') || '';
760
+ const customerCity = getParam('customerCity');
761
+ const customerEmail = getParam('customerEmail');
762
+ const customerAddress1 = getParam('customerAddress1');
763
+ const customerAddress2 = getParam('customerAddress2');
764
+ const customerName = getParam('customerName');
765
+ const customerPhone = getParam('customerPhone');
766
+ const customerZip = getParam('customerZip');
767
+ const customerState = getParam('customerState');
768
+ this.applyPrefillAddress({
769
+ customerAddress1,
770
+ customerAddress2,
771
+ customerCity,
772
+ customerCountry,
773
+ customerEmail,
774
+ customerName,
775
+ customerPhone,
776
+ customerState,
777
+ customerZip,
778
+ });
779
+ }
780
+ applyPrefillAddress({ customerAddress1, customerAddress2, customerCity, customerCountry, customerEmail, customerName, customerPhone, customerState, customerZip, }) {
781
+ const line1 = customerAddress1 || '';
782
+ const country = customerCountry || '';
783
+ const line2 = customerAddress2 || '';
784
+ const city = customerCity || '';
785
+ const email = customerEmail || '';
786
+ const name = customerName || '';
787
+ const phone = customerPhone || '';
788
+ const postal_code = customerZip || '';
789
+ const state = customerState || '';
734
790
  /**
735
791
  * If one of the value is null, no need to preset the default address.
736
792
  * City and state are optional (they are not always provided for example Puerto Rico)
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-ff5887f0.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
9
  require('./isDarkColor-2acf30d1.js');
@@ -258,7 +258,13 @@ const ZonosController = class {
258
258
  const scripts = template.content.querySelectorAll('script');
259
259
  scripts.forEach(script => {
260
260
  const scriptToInject = document.createElement('script');
261
- scriptToInject.textContent = script.innerHTML;
261
+ if (script.src) {
262
+ scriptToInject.src = script.src;
263
+ scriptToInject.async = script.async;
264
+ }
265
+ else {
266
+ scriptToInject.textContent = script.innerHTML;
267
+ }
262
268
  document.body.appendChild(scriptToInject);
263
269
  });
264
270
  }
@@ -378,7 +384,7 @@ const ZonosController = class {
378
384
  zonosStore.zonosStore.organizationName = organizationName;
379
385
  }
380
386
  render() {
381
- return index.h(index.Host, { key: 'f59eff8c088135e8fc791d03f668e787ec0d0912', class: "zonos--elements" });
387
+ return index.h(index.Host, { key: '001f728dc41550b734fd1b5c9cf15f43c0c4cbdb', class: "zonos--elements" });
382
388
  }
383
389
  };
384
390
  ZonosController.style = ZonosControllerStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-ff5887f0.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-3673a0c2.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-ff5887f0.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-2acf30d1.js');